-
-
Notifications
You must be signed in to change notification settings - Fork 724
feat(linter/plugins): introduce RuleTester
#16206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 11-28-refactor_linter_plugins_add_parse_function
Are you sure you want to change the base?
feat(linter/plugins): introduce RuleTester
#16206
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
87f7b96 to
0ef5845
Compare
0ef5845 to
7d01b65
Compare
7d01b65 to
46826a5
Compare
1302f61 to
afc5df6
Compare
afc5df6 to
df85032
Compare
6ce2fd7 to
1baf878
Compare
df85032 to
54de704
Compare
be3b9ee to
832983a
Compare
1baf878 to
04e394c
Compare
b644de3 to
75f972d
Compare
832983a to
b15c057
Compare
75f972d to
f0fb3fb
Compare
b15c057 to
d89782f
Compare
Pure refactor. Move a few lines of code into `loadPlugin`, to leave a sync function `registerPlugin` which contains the logic for registering a plugin. Required for #16206, which will call this method directly, skipping `import`-ing the plugin from a module.
Implement function for merging rule options from config with the rule's default options. This function is not currently used, as we don't have a way to get options from config over from Rust to JS yet, but I've implemented it now, as it's also needed for the rule tester (#16206).
d89782f to
8881d7f
Compare
f0fb3fb to
350bad0
Compare
350bad0 to
37fd717
Compare
37fd717 to
b0622b5
Compare
b0622b5 to
4ef629f
Compare
4ef629f to
0befe20
Compare
e94dc50 to
a3dfc5b
Compare
a3dfc5b to
550e974
Compare
550e974 to
81260a5
Compare
8df0e41 to
6f782ba
Compare
81260a5 to
0660dff
Compare
6f782ba to
b184e4f
Compare

Closes #16018.
WIP